﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class UControl_UC_TopHeader : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
       
    }
    protected void ImgBtn_Vn_Click(object sender, ImageClickEventArgs e)
    {
        HttpCookie cookie = new HttpCookie("SelLang");
        cookie.Value = "vi";
        Response.SetCookie(cookie);
        ImgBtn_Vn.Enabled = false;
        ImgBtn_En.Enabled = true;
        Response.Redirect(Request.UrlReferrer.AbsoluteUri);
    }
    protected void ImgBtn_En_Click(object sender, ImageClickEventArgs e)
    {
        HttpCookie cookie = new HttpCookie("SelLang");
        cookie.Value = "en";
        Response.SetCookie(cookie);
        ImgBtn_En.Enabled = false;
        ImgBtn_Vn.Enabled = true;
        Response.Redirect(Request.UrlReferrer.AbsoluteUri); 
    }
}